package com.tender.desensitization.filter;

import java.lang.reflect.Field;

/**
 * 排除掉 成员属性为 Class<?> 和 Field 类型的
 */
public class ClassOrFieldIgnoreFilter implements FieldFilter {
    @Override
    public boolean isMatch(Field field) {
        return Class.class.isAssignableFrom(field.getType())
                || Field.class.isAssignableFrom(field.getType());
    }
}